package com.edmendst.xmall.mapper;

import com.edmendst.xmall.pojo.UserAddress;

import java.util.List;

/**
* @author Aprouz
* @description 针对表【user_address】的数据库操作Mapper
* @createDate 2025-05-30 08:59:19
* @Entity com.edmendst.xmall.pojo.UserAddress
*/
public interface UserAddressMapper {

    int deleteByPrimaryKey(Long id);

    int insert(UserAddress record);

    int insertSelective(UserAddress record);

    UserAddress selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(UserAddress record);

    int updateByPrimaryKey(UserAddress record);

    List<UserAddress> selectAllByUserId(Integer userId);

    int clearDefaultAddresses(Integer userId);

    int selectCountByUserId(Integer userId);

}
